//-
  ztncui - ZeroTier network controller UI
  Copyright (C) 2017-2021  Key Networks (https://key-networks.com)
  Licensed under GPLv3 - see LICENSE for details.

extends login_layout

block login_content

  if error
     b #{error}
  else
    .row
      .col-sm-12
        h1= title

        if message
          .alert.alert-info
            strong= message

    form.form-horizontal(method='POST' action='')
      .form-group.row
        .col-sm-2
          label.control-label(for='username') 用户名:
        .col-sm-10
          .input-group
            span.input-group-addon
              i.glyphicon.glyphicon-user
            input#username.form-control(type='text' name='username' placeholder='请输入用户名')

      .form-group.row
        .col-sm-2
          label.control-label(for='password') 密码:
        .col-sm-10
          .input-group
            span.input-group-addon
              i.glyphicon.glyphicon-lock
            input#password.form-control(type='password' name='password' placeholder='请输入密码')

      .form-group.row
        .col-sm-2
        .col-sm-10
          button.btn.btn-primary(type='submit') 登录
          = ' '
          a.btn.btn-default(href='/' name='cancel' role='button') 取消
